﻿@model Webcar.Entitys.BS_USER_MOVE
@using (Ajax.BeginForm("MoveSave", "Driver",
    new AjaxOptions
    {
        HttpMethod = "POST",
        //OnBegin = "function(){ loadingPanel.Show(); }",
        //OnComplete = "function(){ loadingPanel.Hide(); }",
        UpdateTargetId = "error-content",
        InsertionMode = InsertionMode.Replace
    }))
{
    @Html.AntiForgeryToken()
    <div id="edit-car">
         @Html.HiddenFor(a => a.OLD_DEPT)
        @Html.HiddenFor(a => a.USER_NO)

        <table class="edit-table">
            <tr>
                <td style="width: 80px; text-align: right">姓名：</td>
                <td style="width: 200px">@ViewBag.ManName</td>
            </tr>
            <tr>
                <td style="width: 80px; text-align: right;">所属单位：</td>
                <td>@ViewBag.DeptName</td>
            </tr>
            <tr>
                <td style="width: 80px; text-align: right;">*新单位：</td>
                <td>@Html.DropDownListFor(a => a.NEW_DEPT, WebcarDataHelper.UserSuperDeptList, new { @style = "width: 100%;", @onchange = "retriveChildDept2('NEW_DEPT','NEW_CHILD_DEPT');"})</td>
            </tr>
            <tr>
                <td style="width: 80px; text-align: right;">*新下级单位：</td>
                <td>@Html.DropDownList("NEW_CHILD_DEPT", WebcarDataHelper.GetChildDeptByDeptList(Model.OLD_DEPT), new { @style = "width: 100%;" })</td>
            </tr>
            <tr>
                <td style="width: 80px; text-align: right;">调动人：</td>
                <td>@Model.OPERATOR</td>
            </tr>
            <tr>
                <td style="width: 80px; text-align: right;">*调动日期：</td>
                <td>@Html.CalendarFor(a => a.MOVE_DATE)</td>
            </tr>

            <tr>
                <td style="width: 80px; text-align: right;">*调动原因：</td>
                <td>@Html.TextAreaFor(a => a.CAUSE,4,0, new { @style = "width: 100%;" })</td>
            </tr>
        </table>


        <br />
        @Html.ErrorLabel("error-content")

    </div>
    <div class="edit-button">
        @Html.DevExpress().Button(settings =>
        {
            settings.Name = "Button1";
            settings.Text = "保存";
            settings.UseSubmitBehavior = true;
            settings.Width = 70;
            settings.ControlStyle.CssClass = "button1";
        }).GetHtml()
        @Html.DevExpress().Button(settings =>
        {
            settings.ControlStyle.CssClass = "button2";
            settings.Name = "Button2";
            settings.Text = "取消";
            settings.Width = 70;
            settings.ClientSideEvents.Click = "function(s, e){ pcModalModeMove.Hide(); }";

        }).GetHtml()
    </div>
}

